package cn.rocksolid.sport.common.mq;

import cn.rocksolid.sport.common.Constant.MQ;
import org.springframework.jms.annotation.JmsListener;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@JmsListener(containerFactory = MQ.SUBSCRIBE_FACTORY, destination = "")
public @interface Mq {
  String destination();
}
